﻿/*
 * Created by SharpDevelop.
 * User: bcrawford
 * Date: 11/19/2013
 * Time: 1:24 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace System.Collections.Generic
{
  /// <summary>
  /// Description of extensions.
  /// </summary>
  public static class extensions
  {
    public static void AddRange<K, V>(this Dictionary<K, V> dic, IEnumerable<K> keys, V v)
    {
      foreach (var k in keys)
        dic[k] = v;
    }
    public static string RegexReplace(this string s, string SearchPattern, string Replacement)
    {
      Regex r = new Regex(SearchPattern);
      return r.Replace(s, Replacement);
    }
  }
}
